package Timer;

import cn.hutool.core.date.DateUtil;

import java.util.Timer;
import java.util.TimerTask;

public class timerDemo {
    public static void main(String[] args) {
        System.out.println("定时任务开始");
        Timer t = new Timer();
        t.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("是兔兔呀");
            }
        },  DateUtil.parse("2022-08-24 16:32:00", "yyyy-MM-dd hh:mm:ss"));
    }
}


